package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Document(collection = "publish_messages")
@Builder
public class Messages implements Serializable {
    private static final long serialVersionUID = -291788258125767614L;
    @Id
    private ObjectId id;
    //审核状态，1为待审核，2为自动审核通过，3为待人工审核，4为人工审核拒绝，5为人工审核通过，6为自动审核拒绝
    private Integer state;
    //置顶状态，1为未置顶，2为置顶
    private Integer topState;

    private ObjectId publishId;//动态id
    private Long userId; //发布者id
    private Integer reportCount; //举报数
    private Integer likeCount;//点赞数
    private Integer commentCount ;//评论数
    private Integer forwardingCount;//转发数
    private List<String> medias; //媒体数据，图片或小视频 url
    private String text;//文本内容
    private Long createDate;
}
